package pack04;
/**
 * @author wenze-zero
 */
public class FactoryTest {
    public static void main(String[] args) {
        Human blackMan = new BlackHumanFactory().createHuman();
        //黑人诞生了
        Human yellowMan = new YellowHumanFactory().createHuman();
        //黄人诞生了
        Human whiteMan = new WhiteHumanFactory().createHuman();
        //白人诞生了
        blackMan.getColor();
        yellowMan.getColor();
        whiteMan.getColor();
    }
}